import {IsNotEmpty} from "class-validator";

export class UpdateBookDto {
    @IsNotEmpty({message: 'id不能为空'})
    id: number;

    @IsNotEmpty({message: 'name不能为空'})
    name: string;

    @IsNotEmpty({message: 'author不能为空'})
    author: string;

    @IsNotEmpty({message: 'description不能为空'})
    description: string;

    @IsNotEmpty({message: 'cover不能为空'})
    cover: string;
}